package com.example.disinfestation.service.Impl;

import com.example.disinfestation.entity.Pest;
import com.example.disinfestation.mapper.PestMapper;
import com.example.disinfestation.service.PestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PestServiceImpl implements PestService {

   @Autowired
    PestMapper pestMapper;

    @Override
    public List<Pest> selectAll() {
        return pestMapper.selectAll();
    }

    @Override
    public Pest selectById(Integer id) {
        return pestMapper.selectByPrimaryKey(id);
    }


}
